<form class="dux-form uk-form  " action="{url('username')}" method="post" data-dux="form-bind" data-advanced="false">
    <div class="uk-input-group">
        <span class="uk-input-group-label">新设帐号：</span>
        <input type="text" class="uk-form-field" name="username" id="username" placeholder="请输入新的<!--if{$_GET.type=='tel'}-->手机号码<!--{else}-->邮箱帐号<!--{/if}-->">
    </div>
    <div class="uk-form-title">原账号验证</div>
    <div class="uk-input-group">
        <span class="uk-input-group-label">验证方式</span>
        <select name="valtype" id="valtype" class="uk-form-field">
            <!--if{$userInfo.tel}-->
            <option value="0">手机验证</option>
            <!--{/if}-->
            <!--if{$userInfo.email}-->
            <option value="1">邮箱验证</option>
            <!--{/if}-->
        </select>
    </div>
    <div class="uk-input-group">
        <span class="uk-input-group-label">账号验证</span>
        <input type="text" class="uk-form-field" placeholder="请输入验证码" name="val_code">

        <span class="uk-input-group-btn">
                                            <button href="javascript:;" class="uk-button uk-button-small uk-button-primary" data-dux="page-getCode"
                                                    data-url="{url('member/Real/getCode')}" data-field="valtype"
                                                    type="button">获取验证码</button>
                                        </span>
    </div>
    <div class="uk-padding-small">
        <input type="hidden" name="type" value="{$_GET.type}">
        <button class="uk-button uk-button-primary uk-button-block" type="submit">保存资料</button>
    </div>
</form>